<script setup lang="ts">
import { post } from "@/api";
const t = post("/test/:id?/di");
const handleClick = () => {
  t({   query: {a: "sdlfj", b:"01239"} }).then(data => {
    console.log(data);
  }).catch(err => {
    console.log(err);
  });
}
</script>

<template>
  <h1>Hello World !</h1>
  <button @click="handleClick">abc</button>

</template>